package fina2.dcs.mail.manager;

import java.util.Map;

public class MailUser {
	private String user;
	private String password;
	private String mailAddress;
	private int connectionType;

	private Map<String, String> properties;

	public MailUser(String user, String password, int connectionType, Map<String, String> properties) {
		super();
		this.user = user;
		this.password = password;
		this.connectionType = connectionType;
		this.properties = properties;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getConnectionType() {
		return connectionType;
	}

	public void setConnectionType(int connectionType) {
		this.connectionType = connectionType;
	}

	public Map<String, String> getProperties() {
		return properties;
	}

	public void setProperties(Map<String, String> properties) {
		this.properties = properties;
	}

	public String getMailAddress() {
		return mailAddress;
	}

	public void setMailAddress(String mailAddress) {
		this.mailAddress = mailAddress;
	}

	@Override
	public boolean equals(Object obj) {
		MailUser m = (MailUser) obj;
		return this.user.equals(m.user);
	}

}
